package com.fc.happyteam.entity;

import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * Created by futurecreative on 2017/7/19.
 */
public class SkuAttribute implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * attribute ID
     */
    private Long id;

    /**
     * 类型
     */
    private int type;

    /**
     * 名称
     */
    @NotBlank(message="属性不能为空")
    private String name;

    /**
     * 属性值
     */
    @NotBlank(message="属性值不能为空")
    private String value;

    /**
     * 船id
     */
    private Long skuId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
